# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-axolotl
_pkgname="python-${pkgname#py3-}"
pkgver=0.2.3
pkgrel=1
pkgdesc="Python3 port of libsignal-protocol-java"
url="https://github.com/tgalal/python-axolotl"
arch="noarch"
license="GPL-3.0-only"
depends="py3-cryptography py3-protobuf py3-axolotl-curve25519"
makedepends="py3-setuptools"
checkdepends="py3-cparser"
source="$pkgname-$pkgver.tar.gz::https://github.com/tgalal/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-axolotl" # Backwards compatibility
provides="py-axolotl=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="1a10dc9df2f95d19b49909d4d136b5266aae19e24ac84f8b263ae7d4de18f77353c737616ac0648b600e05699a90d348f95c6c1659849986becefb4a0277fc80  py3-axolotl-0.2.3.tar.gz"
